﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StockFinder.Model;

namespace StockFinder.Services.BreadthIndicators
{
    /// <summary>
    /// Determines the number of 
    /// </summary>
    public class UpFourPercentForDayBreadthIndicator
    {
        public bool DoesPassBreadthTest(List<DailyPrice> prices, bool up, int percentChange)
        {
            bool result = false;

            //need at least today and yesterday
            if (prices.Count > 1)
            {
                DailyPrice lastPrice = prices[0];
                DailyPrice penultimatePrice = prices[1];

                if (lastPrice.AdjustedClose > 0 && penultimatePrice.AdjustedClose > 0)
                {
                    if (lastPrice.AdjustedClose > penultimatePrice.AdjustedClose)
                    {

                    }
                }
            }

            return result;
        }
    }
}
